#pragma once
enum KeyVal
{
	KEY_UP = 0x1,
	KEY_DOWN = 0x2,
	KEY_LEFT = 0x4,
	KEY_RIGHT = 0x8,
	KEY_A = 0x10,
	KEY_B = 0x20,
	KEY_X = 0x40,
	KEY_Y = 0x80
};
class InputSystem
{
public:
	InputSystem(void);
	~InputSystem(void);

	static InputSystem* s;
	static InputSystem* GetIns()
	{
		if (s == 0)
		{
			s = new InputSystem();
		}
		return s;
	}
	void Update(float dt);
	void TrigKey(int val);
	bool KeyPressed(int val);
	bool KeyTrigged(int val);

	unsigned int iKeyData;
	unsigned int iKeyDataPreFrame;
};

